package com.goudan.ojcloudjudgeservice.controller;

import com.goudan.ojcloudjudgeservice.service.JudgeService;
import com.goudan.ojcloudserviceclient.FeignClient.JudgeFeignClient;
import com.goudan.ojmodel.entity.QuestionSubmit;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController("/inner")
public class JudeControllerInner implements JudgeFeignClient {
    @Resource
    private JudgeService judgeService;
    @Override
    @PostMapping("/do")
    public QuestionSubmit doJudge(Long questionSubmitId) {
        return judgeService.doJudge(questionSubmitId);
    }
}
